package com.test.firstdemo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

//@Slf4j
@RestController
@RequestMapping("/first/test")
public class FristTestController {

    protected final Logger logger = LoggerFactory.getLogger(FristTestController.class);

    @PostMapping("/postadd")
//    @ResponseBody
    public String add(@RequestBody Map prams) {

        System.out.println("入参" + prams);
        return prams.toString();
    }

    public static void main(String[] args) {
        System.out.println("11");
    }
}
